//
//  NSManagedObject+BaseHelper.m
//  Sudoku
//
//  Created by Richard Hodgkins on 29/09/2012.
//  Copyright (c) 2012 Richard Hodgkins. All rights reserved.
//

#import "NSManagedObject+BaseHelper.h"

#import "SKCoreData.h"

@implementation NSManagedObject (BaseHelper)

+(NSEntityDescription *) entityDescription
{
    return [self entityDescriptionIn:[self context]];
}

+(id) insertNewInstance
{
    return [self insertNewInstanceIn:[self context]];
}

+(NSFetchRequest *) fetchRequest
{
    return [self fetchRequestInContext:[self context]];
}

+(NSManagedObjectContext *) context
{
    return [SKCoreData sharedInstance].managedObjectContext;
}

@end
